


//顶部商品图片，信息
#main{
  padding: 10px 0;
  .g_details{
    overflow: hidden;
  }
  .d_lt{//顶部左边
    width: 540px;
    height: 624px;
    float: left;
    .d_lt_top{
      position: relative;
      width: 540px;
      height: 512px;
      box-sizing: border-box;
      border: 1px solid #eee;
      padding: 5px;
      img{
        position: absolute;
        margin:auto;
        left: 0;
        right: 0;
        top: 0px;
        bottom: 0;
      }

      a{
        background-color: rgba(255,255,255, 0.7);
        color: #333;
        position: absolute;
        right: 4px;
        bottom: 4px;
        padding: 6px 12px;
      }
    }
    .d_lt_bt{
      margin-top: 30px;
      text-align: center;
      div{
        display: inline-block;
        padding: 5px;
        margin-left: 5px;
        box-sizing: border-box;
        border: 1px solid #eee;
        img{
          width: 65px;
          height: 65px;
        }
      }
    }
  }
  .d_rt{//顶部右侧
    float: left;
    width: 574px;
    height: 404px;
    margin: 0 20px;
    h1{
      font-size: 20px;
      color: #333333;
    }
    >p{
      font-size: small;
      color: #888888;
      margin: 20px 0;
    }
    .goods_price{
      background: #ededed;
      margin: 15px 0 0;
      padding: 10px;
      border-color: #f5f5f5;
      color: #aaa;
      font-size: 14px;
      .oldPrice{//原价
        text-decoration: line-through;
        font-size: 16px;
        position: relative;
        left: 40px;
      }
      .price{//折扣价
        font-size: 1.6666em;
        position: relative;
        left: 26px;
        top: -2px;
        color: #ff5073;
        vertical-align: middle;

      }
      .super_special{//超特价
        position: relative;
        margin-left: 30px;
        padding: 0px;
        background-color: #fc7f97;
        color: #ffffff;
        font-size: 14px;
        left: 10px;
        padding: 4px;
      }
      .sale{//折扣
        padding-right: 5px;
        padding-left: 5px;
        border-radius: 5px;
        line-height: 20px;
        display: inline-block;
        margin-left: 20px;
        color: #ff5073;
        background-color: #f5f5f5;
        font-size: 12px;
        border: 1px solid #ff5073;
      }
    }
    .fan{//返
      height: 45px;
      background-color: #f7f7f7;
      position: relative;
      i{
        margin: 12px 22px 0 13px;
        font-size: 22px;
        color: #ff5073;
        line-height: 45px;
        text-align: center;
      }
      span{
        position: relative;
        left: 10px;
        font-size: 14px;
        color: #666666;
        //text-align: left;
        b{
          color: #ff5073;
          padding: 0 3px;
          font-weight: normal;
        }
      }
    }
    .postage{//邮费
      span:nth-of-type(1){
        display: inline-block;
        margin: 6px 24px 10px 10px;
        color: #aaa;
        font-size: 14px;
      }
      span:nth-of-type(2){
        margin-left: 5px;
        color: #666;
        font-size: 13px;
      }
    }
    /*分类*/
    .options{//分类
      width: 400px;
      dl{
        margin-top: 0;
        margin-bottom: 20px;
        select{
          height: 36px;
          padding: 8px;
          width: 382px;
          text-overflow: ellipsis;
        }
      }
      label{
        margin-left: 10px;
        display: inline-block;
        color: #aaa;
      }
    }
    .add_to_cart{//数量加入购物车
      label{
        display: inline-block;
        margin: 6px 24px 0 10px;
        color: #aaa;
        font-size: 14px;
      }
      .goods_num{
        display: inline-block;
        overflow: hidden;
        position: relative;
        top: 5px;
        a{
          float: left;
          display: inline-block;
          border: 1px solid #dddddd;
          background: #f2f2f2;
          width: 24px;
          height: 26px;
          text-align: center;
          color: #333;
          vertical-align: middle;
          font-size: 12px;
          line-height: 26px;
        }
        a:nth-of-type(1){
          border-right: none;
          float: left;
        }
        input{
          text-align: center;
          float: left;
          height: 26px;
          width: 48px;
          padding: 8px;
          border-right: none;
          border: 1px solid #dddddd;
          color: #aaa;
        }
      }
      p{
        display: inline-block;
        color: #aaa;
        font-size: 14px;
        margin: 6px 0 0 20px;
        span{
          color: #ff5073;
        }
      }
      >div:nth-of-type(1){
        margin-bottom: 35px;
      }
      >div:nth-of-type(2){
        button{
          color: #ff5073;
          border-radius: 4px;
          line-height: 40px;
          height: 42px;
          background: white;
          font-size: 14px;
          border: 1px solid #ff5073;
          border-radius: 5px;
          margin-left: 10px;
          padding: 0 25px;
        }
      }
    }
  }

  //promise韩国直采……
  .promise{
    margin: 40px 0;
    span{
      font-size: 20px;
      color: #f58337;
      margin-left: 30px;
    }
  }
  .details{
    .d_img,.d_goods_info,.d_distribution,.d_comment{
      border: 1px solid #e5e5e5;
      padding: 20px;
    }
    .d_title{
      ul{
        overflow: hidden;
        li{
          float: left;
          width: 126px;
          height: 50px;
          background-color: #eeeeee;
          color: #333333;
          font-size: 17px;
          text-align: center;
          line-height: 50px;
          cursor: pointer;
        }
      li.active{
          border: 1px solid #eeeeee;
          background: white;
          margin-bottom: -1px;
          border-bottom: 2px solid #ff5073;
          color: #ff5073;
        }
      }
    }
    .d_img{
      img{
        width: 1130px;
      }
    }
    .d_goods_info{
      table{
        th{
          padding: 10px;
          height: 20px;
          width: 269px;
          font-weight: bold;
        }
        td{
          padding: 10px;
          height: 20px;
        }
      }
    }
    .d_distribution{
      color: rgb(51, 51, 51);
      font-size: 13px;
    }
    .d_comment{
      .comment-list{
        overflow: hidden;
        border-bottom: 1px solid #999;
        padding-bottom: 30px;
        margin-bottom: 30px;
        .avatar{
          float: left;
          margin-right: 30px;
          img{
            width: 60px;
            height: 60px;
            border-radius: 50%;
          }
        }
        .comments{
          margin-left: 90px;
          width: 1040px;
          .userinfo{
            overflow: hidden;
            .username{
              font-size: 14px;
              color: #666;
              float: left;
            }
            .commentdate{
              font-size: 14px;
              color: #999;
              float: right;
            }
          }
          .star{
            color:#F18200;
            margin:5px 20px 10px 0;
            i{
              margin: 3px;
            }
          }

          .commentdetail{
            font-size: 16px;
            margin-top: 0;
            line-height: 25px;
            margin-bottom: 15px;
            word-wrap: break-word;
            overflow: hidden;
          }
          .commentpic{
            img{
              width: 60px;
              height: 60px;
            }
          }
          .bigpic{
            div{
              position: relative;
              display: inline-block;
              i{
                display: inline-block;
                width: 20px;
                text-align: center;
                line-height: 20px;
                height: 20px;
                border-radius: 50%;
                background: red;
                position: absolute;
                right: -10px;
                top: -10px;
                color:white;
                font-size: 20px;
              }
              img{
                width: 400px;
                height: 400px;
              }
            }

          }
        }
      }
    }

  }

}